import { Module, forwardRef } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { ScheduleModule } from "@nestjs/schedule";
import { Work } from "./work.entity";
import { WorkService } from "./work.service";
import { WorkController } from './work.controller';
import { UserModule } from "src/user/user.module";
import { RedisCacheModule } from "src/cache/cache.module";


@Module({
    imports: [
        TypeOrmModule.forFeature([Work]),
        ScheduleModule.forRoot(),
        UserModule,
        // forwardRef(() => ProjectModule),
        RedisCacheModule
    ],
    providers: [WorkService],
    exports: [WorkService],
    controllers: [WorkController]
})
export class WorkModule { }